import {App} from "vue";
import Icon from "./icon/IIcon.vue";
import IIconMenu from "./icon/IIconMenu.vue";
import IXyzTransition from "./transitions/IXyzTransition.vue";
import IXyzTransitionGroup from "./transitions/IXyzTransitionGroup.vue";
import ICollapseXTransition from "./transitions/ICollapseXTransition";
import ICollapseYTransition from "./transitions/ICollapseYTransition";
import IEditor from "./editor/index.vue";

const createComponent = {
    install: (app: App) => {
        app.component("IIcon", Icon);
        app.component("IIconMenu", IIconMenu);
        app.component("IXyzTransition", IXyzTransition);
        app.component("IXyzTransitionGroup", IXyzTransitionGroup);
        app.component("ICollapseXTransition", ICollapseXTransition);
        app.component("ICollapseYTransition", ICollapseYTransition);
        app.component("IEditor", IEditor);
    },
};

export default createComponent;
